/*******************************
 * Global css stuff
 *******************************/
@-webkit-keyframes pulse {
  0% {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.5);
  }
  100% {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.8);
  }
}
@-moz-keyframes pulse {
  0% {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.5);
  }
  100% {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.8);
  }
}
@keyframes pulse {
  0% {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.5);
  }
  100% {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.8);
  }
}
@-webkit-keyframes pereNoel {
  0% {
    top: 150px;
    left: 110%;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    top: -130px;
    left: -10%;
    opacity: 0;
  }
}
@-moz-keyframes pereNoel {
  0% {
    top: 150px;
    left: 110%;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    top: -130px;
    left: -10%;
    opacity: 0;
  }
}
@keyframes pereNoel {
  0% {
    top: 150px;
    left: 110%;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    top: -130px;
    left: -10%;
    opacity: 0;
  }
}
@-webkit-keyframes cadeau {
  0% {
    top: 20px;
    left: 50%;
    opacity: 0;
  }
  60% {
    top: 20px;
    left: 50%;
    opacity: 0;
  }
  61% {
    top: 50px;
    left: 50%;
    opacity: 1;
  }
  100% {
    top: 220px;
    left: 50%;
  }
}
@-moz-keyframes cadeau {
  0% {
    top: 20px;
    left: 50%;
    opacity: 0;
  }
  60% {
    top: 20px;
    left: 50%;
    opacity: 0;
  }
  61% {
    top: 50px;
    left: 50%;
    opacity: 1;
  }
  100% {
    top: 220px;
    left: 50%;
  }
}
@keyframes cadeau {
  0% {
    top: 20px;
    left: 50%;
    opacity: 0;
  }
  60% {
    top: 20px;
    left: 50%;
    opacity: 0;
  }
  61% {
    top: 50px;
    left: 50%;
    opacity: 1;
  }
  100% {
    top: 220px;
    left: 50%;
  }
}
/*******************************
 * Général
 *******************************/
html {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  overflow-x: hidden;
}
body {
  color: #333;
  font-family: "Lucida Grande", Verdana, "Bitstream Vera Sans", sans-serif;
  font-size: .8em;
  line-height: 1.25;
  background-image: url(../img/bg.jpg);
  margin: 0;
}
a {
  color: #000;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background-clip: padding-box;
  padding: 0 0.3em;
  border: 1px solid transparent;
}
a:hover {
  text-decoration: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border-color: #f77;
  background-color: #aaaaaa;
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffaaaa), color-stop(100% #ff7777));
  background-image: -webkit-linear-gradient(top, #ffaaaa 0%, #ff7777 100%);
  background-image: -moz-linear-gradient(top, #ffaaaa 0%, #ff7777 100%);
  background-image: -ms-linear-gradient(top, #ffaaaa 0%, #ff7777 100%);
  background-image: -o-linear-gradient(top, #ffaaaa 0%, #ff7777 100%);
  background-image: linear-gradient(top, #ffaaaa 0%, #ff7777 100%);
}
.clearer {
  clear: both;
}
input:invalid {
  background: rgba(255, 255, 255, 0);
}
button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
a.button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
#phylactere {
  font: normal 12px "Lucida Grande", Verdana, "Bitstream Vera Sans", sans-serif;
  position: absolute;
  top: 75px;
  left: 50%;
}
#phylactere .phylactere-pointe {
  position: relative;
  top: 1px;
  background: url(../img/philactere-pointe.png) 15px bottom no-repeat;
  height: 20px;
}
#phylactere .phylactere-message {
  background: #fff;
  padding: 5px;
  border: 1px solid #333;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background-clip: padding-box;
  -webkit-box-shadow: 0 3px 20px rgba(0, 0, 0, 0.7);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.7);
}
/*******************************
 * Mise en page
 *******************************/
#container {
  width: 750px;
  margin: auto;
  -webkit-box-shadow: 0 3px 50px #000000;
  box-shadow: 0 3px 50px #000000;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
}
#header {
  position: relative;
  border-bottom: 2px solid #fff;
  background: #ffffff url('../img/bgHeader.png') repeat left top;
  height: 150px;
}
#content {
  padding: 15px;
  background: #fff;
  background: rgba(255, 255, 255, 0.93);
}
h2 {
  font-size: 1.4em;
  margin-top: 0;
}
.aDroiteDuH2 {
  float: right;
  position: relative;
  top: -2.6em;
}
h2.centered {
  text-align: center;
  font-size: 1.6em;
}
.aside {
  float: right;
  margin: 20px;
}
/*******************************
 * Header
 *******************************/
#header {
  border-bottom: 1px solid #ddd;
}
#header h1 {
  text-shadow: 2px 2px 0px #000000;
  color: #fff;
  text-align: left;
  margin: 0;
  padding: 45px 0 0 30px;
}
#header #headerMenu {
  position: absolute;
  top: 10px;
  right: 10px;
  text-align: right;
  list-style-type: none;
  line-height: 1.7em;
  font-size: 0.8em;
  margin: 0;
}
#header #headerMenu a {
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 0px #000000;
}
/*******************************
 * Index
 *******************************/
.index #phylactere {
  font: normal 12px "Lucida Grande", Verdana, "Bitstream Vera Sans", sans-serif;
  position: absolute;
  top: 75px;
  left: 50%;
  width: 300px !important;
  margin-left: -150px !important;
  text-align: center;
}
.index #phylactere .phylactere-pointe {
  display: none;
}
.index #phylactere .phylactere-message {
  background: #fff;
  padding: 5px;
  border: 1px solid #333;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background-clip: padding-box;
  -webkit-box-shadow: 0 3px 20px rgba(0, 0, 0, 0.7);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.7);
}
.index form {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 5px solid #fff;
  padding: 10px;
  width: 270px;
  margin-left: -150px;
  height: 187px;
  margin-top: -110px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background-clip: padding-box;
  -webkit-box-shadow: 0 3px 50px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 50px rgba(0, 0, 0, 0.5);
  background: #fff;
  background-color: transparent;
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 0.8)), color-stop(100% rgba(255, 255, 255, 0.9)));
  background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  background-image: linear-gradient(top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ccffffff', endColorstr='#e6ffffff', GradientType=0);
}
.index form h1 {
  text-align: center;
  margin-bottom: 25px;
}
.index form p {
  padding-left: 7px;
  margin-bottom: 15px;
}
.index form fieldset {
  border: 2px solid #fff;
  background: #fff;
  background: rgba(255, 255, 255, 0.6);
  padding: 0;
  padding-bottom: 7px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background-clip: padding-box;
}
.index form .lienInscription {
  float: left;
  margin: 14px 0 0 5px;
}
.index form label {
  display: block;
  padding: 10px;
}
.index form input {
  float: right;
}
.index form input {
  width: 130px;
}
.index form input[type=submit] {
  width: auto;
  margin-right: 10px;
}
/*******************************
 * Partie
 *******************************/
.plateau {
  margin: 20px;
  padding: 5px;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  -webkit-border-radius: 20px;
  border-radius: 20px;
  background-clip: padding-box;
  background-image: url('../img/alu.jpg');
}
.plateau td {
  padding: 3px;
}
#arbreJetons {
  background: url('../img/tree.png') no-repeat left top;
  float: right;
  width: 400px;
  height: 414px;
  position: relative;
  /* Positions des jetons en tant que boules de noël */
}
#arbreJetons .jeton {
  position: absolute !important;
}
#arbreJetons #jeton1 {
  top: 228px;
  left: 115px;
}
#arbreJetons #jeton2 {
  top: 127px;
  left: 125px;
}
#arbreJetons #jeton3 {
  top: 283px;
  left: 169px;
}
#arbreJetons #jeton4 {
  top: 162px;
  left: 195px;
}
#arbreJetons #jeton5 {
  top: 323px;
  left: 50px;
}
#arbreJetons #jeton6 {
  top: 40px;
  left: 145px;
}
#arbreJetons #jeton7 {
  top: 287px;
  left: 112px;
}
#arbreJetons #jeton8 {
  top: 207px;
  left: 165px;
}
#arbreJetons #jeton9 {
  top: 333px;
  left: 130px;
}
#arbreJetons #jeton10 {
  top: 90px;
  left: 165px;
}
#arbreJetons #jeton11 {
  top: 326px;
  left: 256px;
}
#arbreJetons #jeton12 {
  top: 268px;
  left: 219px;
}
/* Représente un emplacement et est extended par jeton */
.numbeur {
  cursor: default;
  display: block;
  text-align: center;
  width: 22px;
  height: 22px;
  line-height: 24px;
  font-size: 0.9em;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.5);
  -webkit-border-radius: 1337px;
  border-radius: 1337px;
  background-clip: padding-box;
}
.numbeur.droppable {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.8);
  -webkit-animation: pulse 700ms linear 0 infinite alternate;
  -moz-animation: pulse 700ms linear 0 infinite alternate;
  -ms-animation: pulse 700ms linear 0 infinite alternate;
  -o-animation: pulse 700ms linear 0 infinite alternate;
  animation: pulse 700ms linear 0 infinite alternate;
}
.jeton {
  cursor: default;
  display: block;
  text-align: center;
  width: 22px;
  height: 22px;
  line-height: 24px;
  font-size: 0.9em;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.5);
  -webkit-border-radius: 1337px;
  border-radius: 1337px;
  background-clip: padding-box;
  z-index: 100;
  width: 24px;
  height: 24px;
  background: url('../img/redBall.png');
  border: none;
  color: white;
}
.jetonActif {
  cursor: default;
  display: block;
  text-align: center;
  width: 22px;
  height: 22px;
  line-height: 24px;
  font-size: 0.9em;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.5);
  -webkit-border-radius: 1337px;
  border-radius: 1337px;
  background-clip: padding-box;
  z-index: 100;
  width: 24px;
  height: 24px;
  background: url('../img/redBall.png');
  border: none;
  color: white;
  background: url('../img/blueBall.png');
}
.ui-state-disabled {
  opacity: 1;
}
.draggable {
  cursor: pointer;
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
}
.grabbed {
  cursor: pointer;
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}
#pereNoel {
  position: absolute;
  margin-left: -68px;
  width: 136px;
  height: 150px;
  z-index: 100;
  opacity: 0;
  background: url('../img/flyingSanta.png');
  -webkit-animation: pereNoel 3000ms linear 0 1 normal forwards;
  -moz-animation: pereNoel 3000ms linear 0 1 normal forwards;
  -ms-animation: pereNoel 3000ms linear 0 1 normal forwards;
  -o-animation: pereNoel 3000ms linear 0 1 normal forwards;
  animation: pereNoel 3000ms linear 0 1 normal forwards;
}
#cadeau {
  position: absolute;
  top: 220px;
  left: 50%;
  margin-left: -32px;
  width: 64px;
  padding-top: 23px;
  height: 41px;
  background: url('../img/cadeau.png');
  color: #fff;
  font-size: 2em;
  text-align: center;
  font-weight: bold;
  text-shadow: 1px 1px 0px #000000;
  -webkit-animation: cadeau 2500ms linear 0 1 normal forwards;
  -moz-animation: cadeau 2500ms linear 0 1 normal forwards;
  -ms-animation: cadeau 2500ms linear 0 1 normal forwards;
  -o-animation: cadeau 2500ms linear 0 1 normal forwards;
  animation: cadeau 2500ms linear 0 1 normal forwards;
}
/*******************************
 * Inscription
 *******************************/
.inscription form {
  width: 25em;
  margin: auto;
}
.inscription fieldset {
  border: none;
}
.inscription label {
  display: block;
  padding: 10px;
}
.inscription input {
  float: right;
  width: 130px;
}
.inscription input[type=submit] {
  width: auto;
  margin-top: 10px;
  margin-right: 10px;
}
/*******************************
 * Dashboard
 *******************************/
.dashboard #statistiques {
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid #555;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background-clip: padding-box;
  padding: 5px;
  min-width: 170px;
}
.dashboard #statistiques caption {
  font-size: 1.4em;
  margin-bottom: 5px;
}
.dashboard #statistiques td {
  padding: 3px;
}
.dashboard ul {
  list-style-type: none;
  padding: 0 0 0 30px;
}
.dashboard ul li {
  line-height: 42px;
}
.dashboard ul li img {
  vertical-align: middle;
  position: relative;
  top: -3px;
  /* corrige un décalage inexpliqué */
  margin-right: 5px;
}
.dashboard #boutonNouvellePartie {
  line-height: 32px;
  font-size: 1.4em;
  display: inline-block;
  margin: 20px;
}
.dashboard #boutonNouvellePartie img {
  vertical-align: middle;
  margin-right: 5px;
  position: relative;
  top: -3px;
  /* corrige un décalage inexpliqué */
}
.dashboard #boutonNouvellePartie:hover {
  font-weight: bold;
}
/*******************************
 * Autres pages
 *******************************/
#donneesPartieEnAttente {
  min-width: 300px;
  margin: auto;
}
#donneesPartieEnAttente td {
  vertical-align: top;
  padding: 5px;
}
#donneesPartieEnAttente td:last-child {
  text-align: right;
}
#listeResultats {
  padding: 0;
  margin: 40px 0 0 0;
  list-style-type: none;
}
#listeResultats li {
  display: inline-block;
  width: 49%;
}
#listeResultats li table {
  margin: 20px auto;
}
#listeResultats li table caption {
  text-align: left;
  height: 30px;
  padding: 0 5px;
}
#listeResultats li table caption span {
  float: right;
}
#listeResultats li table caption span .imgVictoire {
  position: relative;
  top: -7px;
}
